﻿<UserControl x:Class="PatientFollowupNotesUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
             xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit">
    <Grid Background="{StaticResource WindowBackground}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="28"/>
            <RowDefinition Height="28"/>
            <RowDefinition Height="28"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="80"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock Text="Visit No:" Style="{StaticResource TextBlockStyle}"/>
        <TextBlock Name="IDTextBlock" Text="1" Grid.Column="1" Style="{StaticResource TextBlockStyle}"/>
        <TextBlock Text="Date:" Grid.Column="4" Style="{StaticResource TextBlockStyle}"/>
        <DatePicker Grid.Column="5" Height="28" Name="VisitDateDatePicker" Width="130" HorizontalAlignment="Left"/>
        <TextBlock Text="Consulting Doc:" Grid.Column="2" Style="{StaticResource TextBlockStyle}"/>
        <ComboBox Grid.Column="3" Width="150" Margin="2" Name="ConsultingDocComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
        <TextBlock Text="Visit Status:" Grid.Row="3" Style="{StaticResource TextBlockStyle}"/>
        <ComboBox Grid.Column="1" Grid.Row="3" Margin="2" Name="VisitStatusComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
        <TextBlock Text="Room:" Grid.Row="3" Grid.Column="2" Style="{StaticResource TextBlockStyle}"/>
        <ComboBox Grid.Row="3" Grid.Column="3" Margin="2" Name="RoomComboBox" DisplayMemberPath="RoomNo" SelectedValuePath="ID"/>
        <TextBlock Text="Chief Complaint:" Grid.Row="4" Style="{StaticResource TextBlockStyle}"/>
        <ComboBox Grid.Row="4" Grid.ColumnSpan="3" Grid.Column="1" Margin="2" Name="CompalinedComplaintsComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
        <TextBlock Text="Follow-up Details:" Grid.Row="5" Style="{StaticResource TextBlockStyle}"/>
        <Grid Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="3">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="Next Contact" Name="NextContactTextBlock" Style="{StaticResource TextBlockStyle}" Foreground="Blue" Cursor="Hand" ToolTip="Click me to setup next contact"/>
            <extToolkit:WatermarkTextBox IsReadOnly="True" Watermark="Next Contact" Grid.Row="1" Name="NextContactTextBox" Margin="2"/>
            <TextBlock Text="Next Appointment" Name="NextAppointmentTextBlock" Grid.Column="1" Style="{StaticResource TextBlockStyle}" Foreground="Blue" Cursor="Hand" ToolTip="Click me to setup next Appointment"/>
            <extToolkit:WatermarkTextBox IsReadOnly="True" Grid.Column="1" Watermark="Next Appointment" Grid.Row="1" Name="NextAppointmentTextBox" Margin="2"/>
            <TextBlock Text="Next Recall" Name="NextRecallTextBlock" Grid.Column="2" Style="{StaticResource TextBlockStyle}" Foreground="Blue" Cursor="Hand" ToolTip="Click me to setup next Recall"/>
            <extToolkit:WatermarkTextBox Grid.Column="3" IsReadOnly="True" Watermark="Next Recall" Grid.Row="1" Name="NextRecallTextBox" Margin="2"/>
        </Grid>
        <TextBlock Text="Remarks:" Grid.Row="6" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Grid.Column="1" Grid.ColumnSpan="3" Watermark="Remarks" Height="100" Grid.Row="6" Name="RemarksTextBox" Margin="2"  AcceptsReturn="True" TextWrapping="WrapWithOverflow" VerticalScrollBarVisibility="Auto"/>
        <my:DataGrid AutoGenerateColumns="False" Margin="5" Height="150" VerticalAlignment="Top" IsReadOnly="True" Grid.Row="7" Name="GuardianDataGrid" Grid.ColumnSpan="4">
            <my:DataGrid.Columns>
                <my:DataGridTextColumn Header="Visit No" Binding="{Binding GuardianName}"/>
                <my:DataGridTextColumn Header="Date" Binding="{Binding Relationship}" />
                <my:DataGridTextColumn Header="Consulting Doc" Binding="{Binding ContactNo}" />
                <my:DataGridTextColumn Header="Visit Status" Binding="{Binding age}" />
                <my:DataGridTextColumn Header="Room" Binding="{Binding healthStatusName}" />
                <my:DataGridTextColumn Header="Compalins" Binding="{Binding Complaints}"/>
            </my:DataGrid.Columns>
        </my:DataGrid>
    </Grid>
</UserControl>
